package org.hzero.exam.infra.repository.impl;

import org.hzero.exam.domain.entity.HodrSoLine;
import org.hzero.exam.domain.repository.HodrSoLineRepository;
import org.hzero.exam.infra.mapper.HodrSoLineMapper;
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/8/6
 */
@Repository
public class HodrSoLineRepositoryImpl extends BaseRepositoryImpl implements HodrSoLineRepository {
    @Autowired
    private HodrSoLineMapper soLineMapper;
    @Override
    public List<HodrSoLine> selectBySoheaderID(Long  soheaderId) {
        return soLineMapper.selectBySoheaderID(soheaderId);
    }

    @Override
    public HodrSoLine selectBySoHeaderIdAndLineNumber(Long soHeaderId, Long lineNumber) {
        return soLineMapper.selectBySoHeaderIdAndLineNumber(soHeaderId,lineNumber);
    }
}
